# -*- coding: utf-8 -*-
# @Time     :2021/10/27 12:18
# @Author   : master
# @Software : PyCharm


import unittest
import HTMLTestRunnerNew
from test_case.test_http_request import TestHttpRequest
from tools.project_path import *

suite = unittest.TestSuite()
# suite.addTest(TestHttpRequest('test_api'))         # 测试类的实例
loader = unittest.TestLoader()
suite.addTest(loader.loadTestsFromTestCase(TestHttpRequest))
with open(test_report_path, 'wb') as file:

    # 执行用例
    runner = HTMLTestRunnerNew.HTMLTestRunner(stream=file,
                                              title='GEVAPPapi测试报告',
                                              description='单元测试14',
                                              )
    runner.run(suite)
